package com.shop.entity;
/*CREATE TABLE cargoodslist (
   `c_id` BIGINT(16) NOT NULL auto_increment PRIMARY KEY COMMENT '购物清单编号（主键）',
   `goods_id` BIGINT(16) NOT NULL COMMENT '商品编号',
   `member_id` BIGINT(16) COMMENT '会员编号（外键）',
   `size` VARCHAR(4),
   `color` VARCHAR(16),
   `quantity` INT,
   foreign key (`member_id`) references member(`id`)
)ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;*/
/**
 * 
 * <b><b>
 * <pre>
 * 
 * </pre>
 * @author 威 
 * <br>2018年1月2日 下午2:53:43 
 *
 */
public class CarGoodsList {
	private Integer id ;
	private Member member ;		//会员外键 		n:1
	private Integer goods_id ;	
	private String size ;
	private String color ;
	private Integer quantity ;
	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Integer getGoods_id() {
		return goods_id;
	}

	public void setGoods_id(Integer goods_id) {
		this.goods_id = goods_id;
	}

	public String toString(){
		return "CarGoodsList[id="+id+
				",goods_id="+goods_id+
				",quantity="+quantity+
				",color="+color+
				",size="+goods_id+
				",memberId="+member.getId()+"]" ;
	}
}
